package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.locallive.activity.LocalActivityQuery;
import com.uzai.console.entity.LocalLiveActivity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface LocalLiveActivityMapper {

    int deleteById(Long id);

    int insert(LocalLiveActivity record);

    int insertSelective(LocalLiveActivity record);

    LocalLiveActivity selectById(Long id);

    int updateByIdSelective(LocalLiveActivity record);

    int updateById(LocalLiveActivity record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<LocalLiveActivity> findByList(Page<LocalLiveActivity> page, @Param("query") LocalActivityQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    ArrayList<LocalLiveActivity> findByList(@Param("query") LocalActivityQuery query);
}